package com.itheima.swagger.controller.api;

import com.itheima.swagger.pojo.Student;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
@Api(value = "主方法",tags ="接口测试")
public interface HelloControllerApi {

    @ApiOperation("综合参数方法")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id",value = "编号",required = true,dataType = "String",paramType = "path"),
            @ApiImplicitParam(name = "name",value = "名字",required = true,dataType = "String",paramType = "path"),
            @ApiImplicitParam(name = "student",value = "学生信息",required = true,dataType = "Object",paramType = "object")
    })
    Student mofidyStudentBynNum(@PathVariable("id") String id, @RequestParam("name") String name, @RequestBody Student student);
}
